home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 / Ham Radio 2000.iso / ham2000 / packet / monax25 / rmain.c < prev    next >
Text File  |  1987-10-18  |  1KB  |  59 lines

  1. /* rmain.c - Report tool for use with STATS AX.25 monitor program.
  2.    This module is part of report.exe
  3.                   
  4.    Language = Microsoft C version 4.0
  5.  
  6.  
  7.    This source is distributed freely and may be copied and
  8.    redistributed with the following provisos:
  9.    
  10.            You may not sell it, nor may you charge for making 
  11.            copies beyond the actual cost of mailing and media.
  12.                       
  13.    Written by Skip Hansen WB6YMH and Harold Price NK6K.
  14.  
  15.    Feedback is desired.
  16.  
  17.    RCP/M (213) 541-2503 300/1200/2400 baud
  18.    or via packet WB6YMH @ WB6YMH-2 or 
  19.          NK6K @ NK6K
  20.  
  21.    Modification history:
  22.  
  23.     8/10/87         NK6K: Initial release.    
  24.     ver 1.0         
  25.  
  26.    10/18/87     NK6K: First general release.
  27.    ver 1.1
  28. */
  29. /* Main program for report.exe */
  30. main (argc, argv)
  31. int        argc;
  32. char    *argv[];
  33. {
  34. int i,j;
  35. char s[128];
  36.  
  37.     cprintf("REPORT - Version 1.1  \r\n");
  38.     cprintf("October 1987, written by NK6K and WB6YMH\r\n");
  39.  
  40.     if (argc>1) {    /* package up command line args for parser */
  41.         j=0;
  42.         for (i=1;i<argc;i++) {
  43.             while(*argv[i]!='\0') {
  44.                 s[j]=*argv[i];
  45.                 j++;
  46.                 *argv[i]++;
  47.                 }
  48.             s[j++]=' ';
  49.             }
  50.         s[j-1]='\0';    
  51.         parse(1,s);
  52.         }
  53.      for(;;){
  54.         cprintf("cmd:");
  55.         parse(0,s);
  56.            }
  57. }
  58.  
  59.